<template>
  <view>
    <iframe   style="width: 100%; height: 100vh; border: 0"   frameborder="0" :src="editorUrl"></iframe>
  </view>
</template>

<script setup>
import { inject } from "vue";
const route = useRoute();
const editorUrl = ref('');
const host = inject('host');


(() => {
  const id = route.params && route.params.id;
  console.log(id)
  editorUrl.value = host + '/viewer/edit/'+id
  console.log(editorUrl.value)
})();
</script>
